package com.yihukurama.base.app.constant;

import static java.lang.Boolean.FALSE;
import static java.lang.Boolean.TRUE;

/**
 * 说明： 一些约定的常量
 * @Author yihukurma
 * @date Created in 下午 3:12 2023/6/16 0016
 *  modified by autor in 下午 3:12 2023/6/16 0016
 */
public final class Constant {


    /**
     * 数据库中逻辑删除字段
     */
    public static String DEL_STATUS = "is_delete";
    /**
     * 逻辑删除
     */
    public static final Boolean DEL_STATUS_1 = TRUE;
    /**
     * 逻辑未删除
     */
    public static final Boolean DEL_STATUS_0 = FALSE;
    /**
     * //用于加密的密钥不同系统不同，避免撞库
     */
    public static String encryptKey = "encryptKey";
    /**
     * //token密钥
     */
    public static String JWTSECRET = "JWTSECRET";

    /**
     * admin mapper包路径
     */
    public static String mapperPath = "";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";


    /** 执行目标key */
    public static final String TASK_PROPERTIES = "TASK_PROPERTIES";


    public static final String TASK_CLASS_NAME = "TASK_CLASS_NAME";


}
